import request from '@/utils/request'

// 获取操作日志列表
export const getLogs = (params) => {
    return request({
        url: 'operationLog/getLogs',
        method: 'get',
        params
    })
}

// 统一分页列表方法
export const getListByPage = (params) => {
    return request({
        url: 'operationLog/getListByPage',
        method: 'get',
        params
    })
}

// 获取日志详情
export const getLogDetail = (params) => {
    return request({
        url: 'operationLog/getLogDetail',
        method: 'get',
        params
    })
}

// 清理日志
export const clearLogs = (data) => {
    return request({
        url: 'operationLog/clearLogs',
        method: 'post',
        data
    })
}

// 获取统计数据
export const getStatistics = (params) => {
    return request({
        url: 'operationLog/getStatistics',
        method: 'get',
        params
    })
}